<? include('header_html.php');?>
<div id="body">
	<div id="nav">
		<a href="/device/<?=$device->id?>/" class="active">Summary</a>
<? foreach ($nms->getDeviceTypes() AS $deviceType) {
	echo '<a href="/devices/'.$deviceType->type.'/" >'.$deviceType->description.'</a>'; 
}?>		
		
	</div>
	<div id="content" class="devices">
		<div class="toolbar">
			<a href="#">Add Device</a>
		</div>
		<div class="header">
			
			<span class="right uptime">Uptime</span>
			<span class="right metrics" >Utilisation Metrics</span>
			<span>Description</span>
		</div>
<? 	foreach ($nms->getDevices() AS $device) { 
		echo '<div class="device">';
		echo '	<div class="info">';
		echo '		<span class="cpus"><img src="img/1x1.png"/>Proccessor Load</span>';
		echo '		<span class="interfaces"><img src="img/1x1.png"/>Interface Traffic</span>';
		echo '		<span class="services"><img src="img/1x1.png"/>	Serivces</span>';
		echo '		<span class="uptime">187 days<br/> 16h 24m 2s</span>';
		echo '	</div>';
		echo '	<img src="img/1x1.png" class="icon"  />';
		echo '	<a href="/device/'.$device->id.'/">'.$device->description.'</a>';
		echo '	<span>'.$device->getHostName().'</span>';
		echo '</div>';
	}
?>	
	</div>


</div>
<div id="footer">



</div>


<? include('footer_html.php'); ?>